package com.atguigu.yygh.hosp.client;

import com.atguigu.yygh.vo.hosp.ScheduleOrderVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-hosp")
public interface HospitalFeignClient {
    /**
     *
     * @param scheduleId
     * @return  根据排班id 来获取下单数据
     */
    @GetMapping("/api/hosp/hospital/inner/getScheduleOrderVo/{scheduleId}")
    ScheduleOrderVo getScheduleOrderVo(@PathVariable("scheduleId") String scheduleId);

    /**
     * 调用远程路径
     * @param hoscode
     * @return
     */
    @GetMapping("/api/hosp/hospital/api_url/{hoscode}")
      String apiUrl(@PathVariable  String hoscode );
}
